<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title><spring:message code="page.examiner.header" /></title>
    </head>

    <body>
        <script type="text/javascript">
            $(document).ready(function() {
                $("#menu_examiner").addClass("active");
            });
        </script>

        <!-- navbar -->
        <jsp:include page="../header.jsp" />

        <!-- context -->
        <div class="container">
            <div class="row-fluid">
                <div class="span6">
                    <h1><spring:message code="page.examiner.header" /></h1>
                </div>
                <div class="span6">
                    <div class="btn-group pull-right">
                        <a href="edit" class="btn btn-primary" >
                            <i class="icon-file"></i>
                            <spring:message code="button.new" />
                        </a>
                    </div>
                </div>
            </div>
            <div class="row-fluid">
                <table class="table table-hover table-striped table-bordered table-condensed">
                    <thead>
                        <tr>
                            <th>Name</th>
                            <th>Address</th>
                            <th></th>
                        </tr>
                    </thead>
                    <tbody>
                        <c:forEach var="modelElement" items="${modelList}">
                            <tr>
                                <td>${modelElement.name}</td>
                                <td>${modelElement.address}</td>
                                <td>
                                    <div class="btn-group pull-right">
                                        <a href="delete?id=${modelElement.id}" class="btn" type="button">
                                            <i class="icon-trash"></i>
                                            <spring:message code="button.delete" />
                                        </a>
                                        <a href="edit?id=${modelElement.id}" class="btn btn-primary" type="button">
                                            <i class="icon-edit"></i>
                                            <spring:message code="button.edit" />
                                        </a>
                                    </div>
                                </td>
                            </tr>
                        </c:forEach>
                    </tbody>
                </table>
            </div>
        </div>
    </body>
</html>
